export const formRules = {
  typeCode: [
    { required: true, message: '请输入租户名称', trigger: ['blur', 'change'] }
  ],
  attrField: [{ required: true, message: '请输入表字段', trigger: 'blur' }],
  attrName: [{ required: true, message: '请输入字段名称', trigger: 'blur' }],
  showType: [
    { required: true, message: '请选择字段类型', trigger: ['blur', 'change'] }
  ],
  isRequired: [
    { required: true, message: '请输入是否必填', trigger: 'change' }
  ],
  attrDict: [{ required: true, message: '请选择字典值', trigger: 'change' }],
  isReport: [{ required: true, message: '请输入是否汇报', trigger: 'change' }],
  resourceUrl: [
    { required: true, message: '请输入url地址', trigger: 'change' }
  ],
  sort: [
    { required: true, message: '请填写排序', trigger: 'blur' },
    { type: 'number', message: '排序必须为数字值' }
  ]
}
